<template>
    <div>
      <NavBar >
        <template #title>
          <h4>{{title }}</h4>
        </template>
        <template #left>
            <Icon name="arrow-left" size="20px" color="#2d2d2d" @click="back()">
            </Icon>
        </template>
      </NavBar>
    </div>
  </template>
  
  <script setup>
  import { NavBar,Icon } from 'vant';
  import router from '@/router';
  const props = defineProps({
    title: {
        type: String,
        required: true
    },
   
})
const back = () => {
    history.back();}
  </script>
  <style>
  .back-icon{
    color: #2d2d2d;
  }
</style>